//
//  UPOrderProductModel.m
//  LoveFreshBee
//
//  Created by wyzc on 16/6/13.
//  Copyright © 2016年 叶落知秋. All rights reserved.
//

#import "UPOrderProductModel.h"

@implementation UPOrderProductModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    self = [super init];
    if (self) {
        self.img=dict[@"img"];
        self.name=dict[@"name"];
        self.price=[dict[@"price"]floatValue];
        self.market_price=[dict[@"market_price"]floatValue];
        self.specifics=dict[@"specifics"];
        self.product_id=dict[@"product_id"];
        self.pm_desc=dict[@"pm_desc"];
        self.store_nums=[dict[@"store_nums"]intValue];
        self.child_cid=[dict[@"child_cid"] intValue];
        
    }
    return self;
}

+(instancetype)productWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

@end
